/*
 *  Recipe.cpp
 *  MilovoMg00
 *
 *  Created by jonny on 6/8/06.
 *  Copyright 2006 __MyCompanyName__. All rights reserved.
 *
 */

#include "Recipe.h"

Recipe::Recipe() {
	ID = -1;
	IDAgentOwner = -1;
	Status = 0;
	CanProduce = true;
	IDArtifactOutput = -1;
	NProduce = 1;
}

Recipe::Recipe(Mil_Int tmpID, Mil_Int tmpIDAgentOwner, Mil_Int tmpStatus)
{
	ID = tmpID;
	IDAgentOwner = tmpIDAgentOwner;
	Status = tmpStatus;
	CanProduce = true;
	IDArtifactOutput = -1;
	NProduce = 1;
}

Recipe::Recipe(Mil_Int tmpID, Mil_Int tmpIDAgentOwner, Mil_Int tmpStatus, Mil_Int tmpIDArtifactOutput,
		 Mil_Int tmpNProduce)
{
	ID = tmpID;
	IDAgentOwner = tmpIDAgentOwner;
	Status = tmpStatus;
	CanProduce = true;
	IDArtifactOutput = tmpIDArtifactOutput;
	NProduce = tmpNProduce;
}

Recipe::~Recipe()
{
}

bool Recipe::IsActive() {
	if(Status > 0)
		return true;
	else return false;
}

